package com.whnk.model.domain;

import com.whnk.common.core.annotation.Excel;
import com.whnk.common.core.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 def_t_workflow
 *
 * @author whnk
 * @date 2021-10-20
 */
public class DefTWorkflow extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 逻辑ID
     */
    private Long id;

    /**
     * 工作流编码
     */
    @Excel(name = "工作流编码")
    private String workflowCode;

    /**
     * 工作流名称
     */
    @Excel(name = "工作流名称")
    private String workflowName;

    /**
     * 产品编号
     */
    @Excel(name = "产品编号")
    private String productCode;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 工作流xml文件
     */
    @Excel(name = "工作流xml文件")
    private byte[] workflowContent;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String workflowStatus;


    /**
     * 标志位（true存在 false停用）
     */
    private boolean isXmlExist;

    /**
     * 在线修改xml()
     */
    private String onlineXml;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setWorkflowCode(String workflowCode) {
        this.workflowCode = workflowCode;
    }

    public String getWorkflowCode() {
        return workflowCode;
    }

    public void setWorkflowName(String workflowName) {
        this.workflowName = workflowName;
    }

    public String getWorkflowName() {
        return workflowName;
    }

    public void setWorkflowContent(byte[] workflowContent) {
        this.workflowContent = workflowContent;
    }

    public byte[] getWorkflowContent() {
        return workflowContent;
    }

    public void setWorkflowStatus(String workflowStatus) {
        this.workflowStatus = workflowStatus;
    }

    public String getWorkflowStatus() {
        return workflowStatus;
    }

    public boolean isXmlExist() { return isXmlExist; }

    public void setXmlExist(boolean xmlExist) { isXmlExist = xmlExist; }

    public String getOnlineXml() { return onlineXml; }

    public void setOnlineXml(String onlineXml) { this.onlineXml = onlineXml; }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("workflowCode", getWorkflowCode())
                .append("workflowName", getWorkflowName())
                .append("workflowContent", getWorkflowContent())
                .append("workflowStatus", getWorkflowStatus())
                .append("isXmlExist", isXmlExist())
                .append("onlineXml",getOnlineXml())
                .append("productCode",getProductCode())
                .append("productName",getProductName())
                .toString();
    }
}
